﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>method_1.html</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../js/jquery-1.8.2.js"></script>
  </head>
  <body>
	<table>
		<tr>
			<td>
				添加属性border/align/width
			</td>
			<td>
				删除属性align
			</td>
		</tr>
	</table>
	
	<script type="text/javascript">
		//为<table>元素添加属性border/align/width
		var $table = $("table").attr("border","2").attr("align","right").attr("width","60%")
		
		//将<table>元素的align属性删除
		$table.removeAttr("align");
	</script>
	
  </body>
</html>




